<template>
	<view>
		<view class="toTop" @click="toTop">
			<image src="../../static/img/toTop.png" mode=""></image>	
		</view>
	</view>
</template>

<script>
	export default {
		name:"to-top",
		data() {
			return {
				isShow:false
			};
		},
		methods:{
			toTop(){
				window.scrollTo({
				    top: 0,
				    behavior: "smooth"
				});
			}
		}
	}
</script>

<style lang="less">
.toTop{
	position: fixed;
	right: 20rpx;
	bottom: 280rpx;
	width: 100rpx;
	height: 100rpx;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	image{
		width: 100rpx;
		height: 100rpx;
	}
}
</style>